package StudentManage;

import java.util.Objects;

/**
 * @Auther: MFM
 * @Date: 2021/7/25 - 07 - 25 - 15:01
 * @version: 1.0
 */

public class richMan {
    private String name;
    private int money;

    public richMan() {
    }

    public richMan(String name, int money) {
        this.name = name;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "福布斯排行榜{" +
                "姓名：'" + name + '\'' +
                ", 财富：" + money +
                "亿美元}";
    }



}
